<?php

class Mysql {

    private static $pdo;

    public static function getInstance() {
        if (!self::$pdo) {
            require __DIR__ . '/../config/config.php';
            self::$pdo = new PDO("{$protocol}:host={$host};dbname={$dbname};charset={$charset}", $username, $password);
        }
        return self::$pdo;
    }

}
